package com.taobao.top.converter
{
	import com.taobao.top.model.TradeRate;
	import com.taobao.top.TOPUtil;
	public class TradeRateConverter
	{
		public function TradeRateConverter()
		{
		}
		
		public static function convert(tradeRateObj:Object):TradeRate
		{
			var tradeRate:TradeRate = new TradeRate();
			tradeRate.content = tradeRateObj.content;
			tradeRate.created = TOPUtil.getCustomDate(tradeRateObj.created);
			tradeRate.item_price = tradeRateObj.item_price;
			tradeRate.item_title = tradeRateObj.item_title;
			tradeRate.nick = tradeRateObj.nick;
			tradeRate.order_id = tradeRateObj.order_id;
			tradeRate.rated_nick = tradeRateObj.rated_nick;
			tradeRate.reply = tradeRateObj.reply;
			tradeRate.result = tradeRateObj.result;
			tradeRate.role = tradeRateObj.role;
			tradeRate.tid = tradeRateObj.tid;
			return tradeRate;
		}
	}
}